import matplotlib.pyplot as plt
from settings import rc_params_toChinese, set_squares_ax

# 设置matplotlib参数
plt.style.use('_mpl-gallery')
plt.rcParams.update(rc_params_toChinese)
plt.subplots_adjust(left=0.1, bottom=0.1, right=0.9, top=0.9)

# 横坐标值
input_values = [i for i in range(1, 6)]
# 平方值
squares = [i**2 for i in input_values]

ax = plt.subplot()
ax.plot(input_values, squares, linewidth=3)

ax = set_squares_ax(ax)

plt.show()
